package com.yykj.tencent.im.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class GroupMsgElementDTO {
    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("群组ID")
    private String groupId;

    @ApiModelProperty("类型")
    private String toAccount;

    @ApiModelProperty("发送时间戳")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm")
    private LocalDateTime msgTime;

    @ApiModelProperty("唯一标识 --撤回单聊消息")
    private String msgKey;

    @ApiModelProperty("下发失败的错误信息")
    private String errorInfo;

    @ApiModelProperty("消息内容--json")
    private String msgBody;

    @ApiModelProperty("自定义消息内容")
    private String cloudCustomData;
}
